[LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Sep 2006 15:11:51 +0000 (16:11 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Sep 2006 15:11:51 +0000 (16:11 +0100)
is exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c

index de6ef0862ef357546a4d2df779566cd1d3245b3f..689a8e335f5fe9d98bc7cbe27b28efd2593d7be3 100644 (file)
@@ -26,6 +26,7 @@
 #include <xen/evtchn.h>
 #include "op_counter.h"
 
+#include <xen/driver_util.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/xenoprof.h>
 #include <../../../drivers/oprofile/cpu_buffer.h>
@@ -396,7 +397,7 @@ static int xenoprof_set_passive(int * p_domains,
 
                npages = (passive_domains[i].bufsize * passive_domains[i].nbuf - 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;
@@ -502,7 +503,7 @@ int __init oprofile_arch_init(struct oprofile_operations * ops)
 
                npages = (init.bufsize * nbuf - 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;